import React from "react";
import { useDispatch } from "react-redux";
import Disp from "./Disp";
import { changeShow } from "../../store/actions/todoList";
import "./index.css";
export default function Model() {
  const dispatch = useDispatch();
  return (
    <>
      <div
        className="mask"
        onClick={() => {
          dispatch(changeShow(false));
        }}
      ></div>
      <Disp />
    </>
  );
}
